export default {
	// 更新token
   update_Token(state,playload){
   	state.validate_token = playload.token
   },
   //
   loginPage(state,playload){
   	state.loginPage = playload.loginPage
   },
   getAvatar(state,playload){
   	state.avatar = playload.navatar
   },
   
   setPosition(state,playload){
	   state.position = playload.location
	   // console.log("state.position:",state.position);
	   //positon {lng: 116.4224009776628, lat: 39.93482727239599}
	   state.locationName=playload.locationName
   },
   //将请求饭店信息的次数 加一
   setRestaurantReqTimes(state){
	   state.restaurantReqTimes = state.restaurantReqTimes + 1
   },
   setCurrentRes(state,v){
	   state.currentRes = v
   }
}